package com.pro.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * ClassName:JsClosure
 * Package:com.pro.pojo
 * Description:
 *
 * @Date:2022/1/22 22:05
 * @Author: XJR
 */
public class JsClosure {
    private Integer id;
    private Integer idd;
    private Integer userId;//用户id
    private Integer type;//类型，2前台，3后台
    private String reason;//封号原因
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private java.util.Date startDate;//封停时间
    private String startDatee;  //字符串时间的封停时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private java.util.Date endDate;//结束时间
    private String endDatee;  //字符串时间的结束时间
    private Integer days;//封停天数
    private String remarks;//备注
    private Integer status; //账号状态
    private Integer enabled;
    private Integer userCode;//用户学号
    private String account; //用户账号
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date unsealDate;
    private String startData;
    private String endData;

    public JsClosure() {
        super();
    }

    public String getEndData() {
        return endData;
    }

    public void setEndData(String endData) {
        this.endData = endData;
    }

    public String getStartData() {
        return startData;
    }

    public void setStartData(String startData) {
        this.startData = startData;
    }

    public JsClosure(Integer id, Integer idd, Integer userId, Integer type, String reason, Date startDate, String startDatee, Date endDate, String endDatee, Integer days, String remarks, Integer status, Integer enabled, Integer userCode, String account, Date unsealDate) {
        this.id = id;
        this.idd = idd;
        this.userId = userId;
        this.type = type;
        this.reason = reason;
        this.startDate = startDate;
        this.startDatee = startDatee;
        this.endDate = endDate;
        this.endDatee = endDatee;
        this.days = days;
        this.remarks = remarks;
        this.status = status;
        this.enabled = enabled;
        this.userCode = userCode;
        this.account = account;
        this.unsealDate = unsealDate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getIdd() {
        return idd;
    }

    public void setIdd(Integer idd) {
        this.idd = idd;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public String getStartDatee() {
        return startDatee;
    }

    public void setStartDatee(String startDatee) {
        this.startDatee = startDatee;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getEndDatee() {
        return endDatee;
    }

    public void setEndDatee(String endDatee) {
        this.endDatee = endDatee;
    }

    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    public Integer getUserCode() {
        return userCode;
    }

    public void setUserCode(Integer userCode) {
        this.userCode = userCode;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public Date getUnsealDate() {
        return unsealDate;
    }

    public void setUnsealDate(Date unsealDate) {
        this.unsealDate = unsealDate;
    }

    @Override
    public String toString() {
        return "JsClosure{" +
                "id=" + id +
                ", idd=" + idd +
                ", userId=" + userId +
                ", type=" + type +
                ", reason='" + reason + '\'' +
                ", startDate=" + startDate +
                ", startDatee='" + startDatee + '\'' +
                ", endDate=" + endDate +
                ", endDatee='" + endDatee + '\'' +
                ", days=" + days +
                ", remarks='" + remarks + '\'' +
                ", status=" + status +
                ", enabled=" + enabled +
                ", userCode=" + userCode +
                ", account='" + account + '\'' +
                ", unsealDate=" + unsealDate +
                '}';
    }
}
